package com.learn.mybatis.springboot.config;

import com.learn.mybatis.springboot.domain.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 单个Bean 进行装配配置方式
 * @Configuration To xml applicationContext.xml
 * @author cong zhi
 * @email  448341911@qq.com
 * @createDate   2023/2/24 15:36
 * @version: v1.0
 */
@Configuration
public class SingleConfiguration {

    @Bean
    public Person person() {
        Person person = new Person("lisa", 25);
        return person;
    }
}
